<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Tymon\JWTAuth\Contracts\JWTSubject;
/**
* @comment
*
* @property int $id
* @property string $phone 手机号
* @property string $login_time
* @property int $type 1.外部用户 2.内部用户
*
*/
class XnH5User extends Authenticatable implements JWTSubject
{
    /**
     * @var string
     */
    protected $connection = 'mysql';
    public $timestamps = false;
    /**
     * @var string
     */
    protected $table = 'xn_h5_user';

    /**
     * @var string[]
    */
    protected $fillable = ['id', 'phone', 'login_time', 'type'];

    public function getJWTIdentifier() {
        return $this->getKey();
    }

    public function getJWTCustomClaims() {
        return [];
    }

}
